import uvicorn
from dotenv import load_dotenv

load_dotenv(dotenv_path=".env")

from app import create_app  # noqa: E402

app = create_app()

if __name__ == "__main__":
    # running_command = ["uvicorn", "manage.py:app", "--reload"]
    # p = subprocess.Popen(running_command)
    uvicorn.run("manage:app", host="0.0.0.0", port=8000, debug=True, workers=4)
